<!-- 用户列表 -->
<style>
	th {
		text-align: center;
	}
	
	.table>tbody>tr>td {
		line-height: 60px;
		text-align: center;
		height: 50px;
		margin: 0px;
	}
</style>
<div id="data_page" class="in_page">
	
		<div class="panel panel-default">
			<div class="panel-body">
				<form class="form-inline" method="get" name="keyword" id="keyword">
					<div class="form-group">
						<input type="text" class="form-control" id="exampleInputName2" name="key" placeholder="产品名">
					</div>
					<button type="submit" class="btn btn-sm btn-default">搜索</button>
					<div class="form-group" style="float: right;">
						<button type="button" class="btn btn-sm btn-primary link" link="{:U('Product/product_list')}">添加商品</button>
	
					</div>
				</form>
			</div>
		</div>
		
	<table class="table table-striped table-bordered table-condensed  ">
		<thead>
			<tr>
				<th>产品列表图</th>
				<th>产品名</th>
				<th>产品简述</th>
				<th>价格</th>
				<th>总库存</th>
				<th>人气</th>
				<th>销量</th>
				<th>评论总星数</th>
				<th>排序</th>
				<th>状态</th>
				<th>属性</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="li">
				<tr>
					<td><img src="{$li.listimg}"  width="50px" height="50px"/></td>
					<td >{$li.title}</td>
					<td>{$li.ds}</td>
					<td>{$li.price}</td>
					<td>{$li.num}</td>
					<td>{$li.renqi}</td>
					<td>{$li.sales}</td>
					<td>{$li.pinglun}</td>
					<td>{$li.sort}</td>
					<td><if condition="$li.status eq '1'">出售中<else/>已下架</if></td>
					<td><button type="button" class="btn btn-sm btn-primary link" link="{:U('Product/product_attr')}?id={$li.id}">管理</button></td>
					<td width="290px">
						<button type="button" class="btn btn-sm btn-warning link" link="{:U('Product/up_product_status')}?id={$li.id}&status=1">上架</button>
						<button type="button" class="btn btn-sm btn-danger link" link="{:U('Product/up_product_status')}?id={$li.id}&status=0">下架</button>
						<button type="button" class="btn btn-sm btn-success link" link="{:U('Product/product_uplist')}?id={$li.id}">修改</button>
						<button type="button" class="btn btn-sm btn-success link" link="{:U('Product/reply')}?id={$li.id}">评论</button>
						<button type="button" class="btn btn-sm btn-danger link" link="{:U('Product/del_product')}?id={$li.id}">删除</button>
					</td>
				</tr>
			</volist>
		</tbody>
	</table>

</div>
<div>{$page}</div>
